package com.tedu.bill1;

/**
 * Author：毕龙
 * Date: 2024/4/11 20:20
 */
public class TestPackaging {
    public static void main(String[] args) {
        CreditCard cc = new CreditCard();
       /* cc.cardNo = "1234567899876543210";
        cc.password = "000000";*/

        cc.setCardNo("1234567899876543210");
        cc.setPassword("1234567");
        Student stu1 = new Student(18, "王世豪", "男", cc);
        System.out.println(cc.getPassword()+"\t"+cc.getCardNo());

        Student stu2 = new Student(20, "王启超", "男");
        stu2.setCC(stu1.getCC());

        stu2.getCC().setPassword("520520",stu1,stu2);
        System.out.println(cc.getPassword()+"\t"+cc.getCardNo());

    }
}
